<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="/WEB-INF/pages/template/libs.jsp" %>

<script type="text/javascript" src="resources/js/articulo/list.js"></script>


<div style="width: 100%">

	<c:if test="${listArticulo!=null}">
		<div class="grid">
			<table cellspacing="0">
				<thead>
					<tr>
						<th>Codigo Articulo</th>
						<th>Codigo Rubro</th>
						<th>Descripcion</th>
						<th>Precio Venta</th>
						<th>Costo Unitario</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="articulo" items="${listArticulo}">
					<tr onclick="selectedArticulo('<c:out value="${articulo.idarticulo}" />');" style="cursor: pointer;">
						<td width="80px"><c:out value="${articulo.idarticulo}" /></td>
						<td><c:out value="${articulo.rubro.descrip}" /> </td>
						<td><c:out value="${articulo.descrip}" /> </td>
						<td align="right"><c:out value="${articulo.precio}" /> </td>
						<td align="right"> <i>No implementado</i></td>
					
					</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</c:if>
	<c:if test="${msg!=null}">
		<div class="grid" style="width: 800px;">
			<table cellspacing="0"  >
				<tbody>
					<tr>
						<td style="padding: 5px;"><i>
						
						<c:if test="${msg=='nofound'}">
							<bean:message key="app.word.nofound"/>
						</c:if>
						
						</i></td>
					</tr>
				</tbody>
			</table>
		</div>
	</c:if>

</div>
